package org.example.ann;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author zengxiaoyu
 * @date 2025/9/12 13:57
 */
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface DynamicJob {


    // 任务执行器名称 - 唯一标识
    DynamicExecutor executor();


    String jobDesc()  default "任务描述";

    String executorParam()  default "";

    // 执行  "0/5 * * * * ?"
    String cron();
}
